package com.godtree.test;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class MyApp {

	   // Define a static logger variable so that it references the
	   // Logger instance named "MyApp".
	   private static Logger logger = LogManager.getLogger(MyApp.class.getName());

	   public static void main(String[] args) {

	   // Set up a simple configuration that logs on the console.

		   logger.trace("Entering application.");  //Log a message object with the TRACE level.
		   Bar bar = new Bar();
		   if (!bar.doIt()) {
			   logger.error("Didn't do it.");
		   }
	  	   logger.trace("Exiting application.");
	   }
}